package com.dycong.common.reflect.aop.annotation.Before;

import com.dycong.common.reflect.aop.Greeting;
import org.springframework.stereotype.Component;

@Component
public class GreetingImplBefore implements Greeting {

    @Before
    @Override
    public void sayHello(String name) {
        System.out.println("Hello! " + name);
    }

    @Before
    @Override
    public void sayLove(String name,String location){
        System.out.println("I love " + name+" in "+location);
    }
}
